﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Class1 ass = new Class1();
            
            Console.WriteLine("请输入圆半径");
            double r = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("圆的面积为：{0}",ass.Area(r));
            Console.WriteLine("请输入长");
            int a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入宽");
            int b = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("长方形的面积为：{0}", ass.Area(a, b));


        }
        public static void text2()
        {
            Yuangong c2 = new Yuangong();
            int id = 6461;
            string name = "jkL";
            string info = "Ndf";

            c2.oo(id, name, info);


        }
        public void text3()
        {
            int i1 = 3;
            int i2 = 5;
            double d1 = 0.2;
            double d2 = 4.2;
            string s1 = "aaa";
            string s2 = "bbb";
            Console.WriteLine("请输入一个整数：");
            int a = Convert.ToInt32(Console.ReadLine());

            SumUtils s = new SumUtils();

            s.a(i1, i2);

        }
    }

}

